import post2Portal from 'src/api/common'

export const advertList = (data) => {
  let params = {
    api: '/sys/advert/list',
    methods: 'GET',
    data: data
  }
  return post2Portal(params);
};

export const addAdvert = (data) => {
  let params = {
    api: '/sys/advert/add',
    methods: 'POST',
    data: data
  }
  return post2Portal(params);
}


export const removeAdvert = (data) => {
  let params = {
    api: '/sys/advert/batch/remove',
    methods: 'POST',
    data: data
  }
  return post2Portal(params);
};


export const updateAdvert = (data) => {
  let params = {
    api: '/sys/advert/update',
    methods: 'POST',
    data: data
  }
  return post2Portal(params);
};

